//
//  AISSSDPMessage.h
//  AISUPnP
//
//  Created by Ares on 1/26/15.
//  Copyright (c) 2015 Ares. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AISSSDPMessage : NSObject

@property(nonatomic, retain) NSString *fromHost;
@property(nonatomic, assign) NSInteger fromPort;
@property(nonatomic, retain) NSString *rawMessage;
@property(nonatomic, assign) NSInteger messageType;
@property(nonatomic, assign) BOOL multicast;

@property(nonatomic, assign) NSInteger searchMX; // For Multicast delay response in [1, searchMx], for unmulticast should response within 1 second.
@property(nonatomic, retain) NSString *searchTarget;

@property(nonatomic, retain) NSString  *notifyType;
@property(nonatomic, assign) NSInteger notifySubType;
@property(nonatomic, retain) NSString *uniqueServiceName;
@property(nonatomic, retain) NSString *serverType;
@property(nonatomic, retain) NSString *location;
@property(nonatomic, assign) NSInteger maxAge; // seconds until advertisement expires

- (id)initWithMessage:(NSString *)message fromHost:(NSString *)host andPort:(NSInteger)port;

@end
